package com.gmrz.uaf.protocol.v1.schema;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

import java.sql.Timestamp;
public class DeviceDetails
{
  @Expose
  private String id;
  @Expose
  private String userName;
  @Expose
  private String appID;
  @Expose
  private String transType;
  @Expose
  private String authType;
  @Expose
  private String deviceID;
  @Expose
  private String deviceName;
  @Expose
  private String deviceAliasName;
  @Expose
  private String deviceType;
  @Expose
  private String osType;
  @Expose
  private String osVersion;
  @Expose
  private Integer status;
  @Expose
  private String imei;
  @Expose
  private String mac;
  @Expose
  private Timestamp createTimeStamp;
  @Expose
  private Timestamp updateTimeStamp;
  @Expose
  private String deviceVersion;

  @SerializedName("deviceisRoot")
  @Expose
  private boolean root;

  public String getDeviceVersion() {
    return deviceVersion;
  }

  public void setDeviceVersion(String deviceVersion) {
    this.deviceVersion = deviceVersion;
  }

  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public String getUserName() {
    return userName;
  }

  public void setUserName(String userName) {
    this.userName = userName;
  }

  public String getAppID() {
    return appID;
  }

  public void setAppID(String appID) {
    this.appID = appID;
  }

  public String getTransType() {
    return transType;
  }

  public void setTransType(String transType) {
    this.transType = transType;
  }

  public String getAuthType() {
    return authType;
  }

  public void setAuthType(String authType) {
    this.authType = authType;
  }

  public String getDeviceID() {
    return deviceID;
  }

  public void setDeviceID(String deviceID) {
    this.deviceID = deviceID;
  }

  public String getDeviceName() {
    return deviceName;
  }

  public void setDeviceName(String deviceName) {
    this.deviceName = deviceName;
  }

  public String getDeviceAliasName() {
    return deviceAliasName;
  }

  public void setDeviceAliasName(String deviceAliasName) {
    this.deviceAliasName = deviceAliasName;
  }

  public String getDeviceType() {
    return deviceType;
  }

  public void setDeviceType(String deviceType) {
    this.deviceType = deviceType;
  }

  public String getOsType() {
    return osType;
  }

  public void setOsType(String osType) {
    this.osType = osType;
  }

  public String getOsVersion() {
    return osVersion;
  }

  public void setOsVersion(String osVersion) {
    this.osVersion = osVersion;
  }

  public Integer getStatus() {
    return status;
  }

  public void setStatus(Integer status) {
    this.status = status;
  }

  public String getImei() {
    return imei;
  }

  public void setImei(String imei) {
    this.imei = imei;
  }

  public String getMac() {
    return mac;
  }

  public void setMac(String mac) {
    this.mac = mac;
  }

  public Timestamp getCreateTimeStamp() {
    return createTimeStamp;
  }

  public void setCreateTimeStamp(Timestamp createTimeStamp) {
    this.createTimeStamp = createTimeStamp;
  }

  public Timestamp getUpdateTimeStamp() {
    return updateTimeStamp;
  }

  public void setUpdateTimeStamp(Timestamp updateTimeStamp) {
    this.updateTimeStamp = updateTimeStamp;
  }

  public String toString()
  {
    StringBuilder builder = new StringBuilder();
    builder.append("DeviceDetails [id=").append(this.id).append(", deviceID=").append(this.deviceID)
            .append(",deviceName=").append(deviceName)
            .append(",deviceType=").append(deviceType)
            .append(",osType=").append(osType)
            .append(",osVersion=").append(osVersion)
            .append(", createTimeStamp=").append(this.createTimeStamp)
            .append(", updateTimeStamp=")
            .append(this.updateTimeStamp)
            .append("]");

    return builder.toString();
  }

  public boolean isRoot() {
    return root;
  }

  public void setRoot(boolean root) {
    this.root = root;
  }
}